// 子组件：推荐
<template>
    <div class="recommend">
        <div v-for="(item) in recommends" :key="item.id" class="recommend-item">
            <a :href="item.herf">
                <img :src='item.picture'>
                <div>{{item.title}}</div>
            </a>
        </div>
    </div>
</template>

<script>
export default {
  name: "RecommendView",
  props:{
      recommends: {
          type:Array,
          default() {
              return []
          }
      }
  },
}
</script>

<style scoped>
    .recommend {
        display: flex;
        width: 100%;
        text-align: center;
        font-size: 12px;

        padding: 8px 0 8px;
        border-bottom: 8px solid #eee;
        /*background-color: yellow;*/

    }

    .recommend-item {
        flex: 1;
        margin-left: 3px;
        margin-right: 3px;
    }

    .recommend-item img {
        width:65px;
        height: 65px;
        margin-bottom: 5px;
    }
</style>
